int removeDuplicates(int* nums, int numsSize){
    int left= 0,right = 0,size = numsSize;
    if(numsSize < 2) return size;

    for(int i = 0; i < size; i++)
    {
        right = i + 1;
        if(right < numsSize && nums[left] != nums[right])
        {
            left++;
            nums[left] = nums[right];
        }
    }
    left++;
    for (int k = 0; k < left; ++k) {
        printf("%d ",nums[k]);
    }
    printf("size: %d ",left);
    return left;
}